package com.quanyue.mechanics.complex.mapper;

import com.quanyue.mechanics.complex.type.ProductReq;
import com.quanyue.mechanics.domain.entity.Product;
import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.mybatis.mapper.page.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProductMapper extends AutoMapper <Product, Integer> {
    Page <Product> findListByMenu(@Param("menuId") Integer menuId, @Param("request") ProductReq req);

    Page <Product> findList(@Param("request") ProductReq req);
}
